package com.ideafactory.client.afinal;

/**
 * Created by LiuShao on 2016/4/6.
 */
public class NetConstants {

    public  final static Integer YBWEB = 1, TESTWEB = 2, LOCALTEST = 3,LOCAL_SERVER = 4;

    public static  String RESOURSE_BASE_URL = "http://www.yunbiao.tv";

    static {
        initConstants(YBWEB);
    }

    private static void  initConstants (Integer type){
        if(type == 1){
            initYBWebConstants();
        }else if (type == 2) {
            initTestWebConstants();
        } else if (type == 3) {
            initLocalTestConstants();
        }
    }

    public static void initYBWebConstants () {
        RESOURSE_BASE_URL ="http://www.yunbiao.tv";
//        RESOURSE_BASE_URL ="https://nsc2019.365sale.com/zzdc";
//        RESOURSE_BASE_URL ="http://192.168.1.54:8088/zzdc/";
//        RESOURSE_BASE_URL ="http://wei.yunbiaowulian.com:8088/zzdc/";
//        RESOURSE_BASE_URL ="http://192.168.1.101:8855/zzdc/";
    }

    private static void initTestWebConstants() {
//        RESOURSE_BASE_URL ="http://test.yunbiaowulian.com";
        RESOURSE_BASE_URL ="http://wei.yunbiaowulian.com:8083/hsdzzyl";
    }

    private static void initLocalTestConstants() {
        RESOURSE_BASE_URL = "http://192.168.1.45:8082/hsdzzyl";
    }

//      public static  String RESOURSE_BASE_URL = "http://192.168.1.145:8080/yb";//吴建超
//      public static  String RESOURSE_BASE_URL = "http://192.168.1.150:8080/yb";//吴冲

    //修改设备状态
    public static final String UPDATE_DEVICE_STATUS = RESOURSE_BASE_URL + "/device/status/update.html";
    //获得自助机基本信息
    public static final String SERVICE_BASE_INFO = RESOURSE_BASE_URL + "/busself/busselfpost/getservicebaseinfo.html";
    //获取店铺信息
    public static final String STORE_BASE_INFO = RESOURSE_BASE_URL + "/busself/busselfpost/getstorebaseinfo.html";

    //获取模板信息
    public static final String MODEL_BASE_INFO = RESOURSE_BASE_URL + "/busself/busselfpost/getmodelbaseinfo.html";

    //获取首页广告图片和视频
    public static final String IMAGE_PLAY_LIST = RESOURSE_BASE_URL + "/busself/busselfpost/getadvertimagelist.html";

    //获取目录信息
    public static final String MODEL_CATALOG_LIST = RESOURSE_BASE_URL + "/busself/busselfpost/getmodelcataloglist.html";

    //通过目录获取产品
    public static final String CATALOG_GOODS_LIST = RESOURSE_BASE_URL + "/busself/busselfpost/getcataloggoodslist.html";
    //获取套餐详细
    public static final String GOODS_GROUP_LIST = RESOURSE_BASE_URL + "/busself/busselfpost/getgoodsgrouplist.html";

    //提交订单
    public static final String SUBMIT_ORDER_INFO = RESOURSE_BASE_URL + "/busself/busselfpostpay/submitorderinfo.html";

    //获取小票模板
    public static final String PRINT_MODEL_BASE_INFO = RESOURSE_BASE_URL + "/busself/busselfpost/getprintmodelbaseinfo.html";

    //获取支付宝二维码
    public static final String getAlipayQRcode=RESOURSE_BASE_URL+"/busself/busselfpostpay/paybyalipay.html";

    //获取哆啦宝二维码
    public static final String getDuoLaBaoQRcode=RESOURSE_BASE_URL+"/busself/busselfpostpay/paybyduolabao.html";


    //获取微信二维码
    public static final String getWeiChatQRcode=RESOURSE_BASE_URL+"/busself/busselfpostpay/paybywxpay.html";
    //支付宝扫码
    public static final String AlipayScancode=RESOURSE_BASE_URL+"/busself/busselfpostpay/paytoalipay.html";

    //微信扫码
    public static final String WechatScancode=RESOURSE_BASE_URL+"/busself/busselfpostpay/paytowxpay.html";

    //微信扫码
    public static final String PostTicketInfo=RESOURSE_BASE_URL+"/busself/busselfpostpay/submitorderprintinfo.html";

    /**
     * 版本检测
     **/
    public static String VERSION_URL = RESOURSE_BASE_URL + "/device/service/getversion.html";

    /**
     * 开关机时间获取
     **/
    public static String POWER_OFF_URL = RESOURSE_BASE_URL + "/device/service/poweroff.html";


    /**
     * 凭码取票
     **/

    public static String SCANLETICKET = RESOURSE_BASE_URL + "/mobilebusself/mobilebusselfpost/selectorderbyordercode.html";

    /**
     * 凭二维码取票
     **/

    public static String SCANLEQR = RESOURSE_BASE_URL + "/mobilebusself/mobilebusselfpost/selectbyordersernum.html";


    /*
    * 取票完成返回
    * */

    public static String SCANLERETURN = RESOURSE_BASE_URL + "/mobilebusself/mobilebusselfpost/submitorderprintinfo.html";

      /*
    * 取票完成返回
    * */

    public static String GETORDERINFO = RESOURSE_BASE_URL + "/busself/busselfpostpay/getorderinfo.html";


       /*
    * 优惠券
    * */

    public static String GETCOUPON = RESOURSE_BASE_URL + "/busself/busselfpostpay/getpreferentialcode.html";

    /*
    * 0元提交
    * */

    public static String SUBMIT_0_ORFER = RESOURSE_BASE_URL + "/busself/busselfpostpay/freepayparam.html";


    //查询订单状态
    public static final String GET_ORDER_STATUS = RESOURSE_BASE_URL + "/busself/busselfpostpay/getorstatus.html";


}
